class_name WeaponC
extends Node2D

@export var weapon_component_name:String
# 优先级越小越早执行
@export var priority:int = 0
var weapon:Weapon
var enable = false
var inited = false

func init_component(weapon:Weapon):
	self.weapon = weapon
	inited = true
	enable = false
func equip():
	enable = true
func unequip():
	enable = false
func discard():
	pass
